package pkmn.status;

public class BattleStatus {
    private BattleStatusEnum battleStatusEnum;
    private int turns;

    public BattleStatus(){
        this.battleStatusEnum = BattleStatusEnum.none;
    }

    public BattleStatus(BattleStatusEnum battleStatusEnum){
        this.battleStatusEnum = battleStatusEnum;
    }

    public BattleStatus(BattleStatusEnum battleStatusEnum, int turns){
        this.battleStatusEnum = battleStatusEnum;
        this.turns = turns;
    }

    public BattleStatusEnum getStatusEnum(){
        return this.battleStatusEnum;
    }

    public int getTurns(){
        return this.turns;
    }

    public void decTurns(){
        if(this.turns > 0)
        this.turns--;
    }

    public boolean equals(BattleStatusEnum battleStatusEnum){
        return this.battleStatusEnum == battleStatusEnum;
    }

    @Override
    public String toString(){
        return this.battleStatusEnum.toString();
    }
}
